package com.xyt.axis2.client.bootstrap;

import com.xyt.axis2.server.impl.HelloWorldStub;
import org.apache.axis2.AxisFault;

import java.rmi.RemoteException;

/**
* 摘要：
* @author xyt
* @version 1.0
* @create 2016-12-29 17:43
**/
public class ClientMain {
    public static void main(String[] args) {
        try {
            HelloWorldStub stub = new HelloWorldStub();//创建HelloWorldStub对象
            HelloWorldStub.SayHello sayHello = new HelloWorldStub.SayHello();//创建SayHello对象
            sayHello.setName("Jane");
//            sayHello.setArgs0("Jane");//设置参数
            HelloWorldStub.SayHelloResponse resp = stub.sayHello(sayHello);
            System.out.println(resp.get_return());
        } catch (AxisFault e) {
            e.printStackTrace();
        } catch (RemoteException e) {
            e.printStackTrace();
        }

    }
}
